package org.chenbingkang.esper;


import org.chenbingkang.esper.client.EsperClient2;
import org.chenbingkang.esper.event.PersonEvent;
import org.chenbingkang.esper.client.EsperClient;

import java.util.HashMap;
import java.util.Map;

public class Application {
    public static void main(String ... args){
        EsperClient ec = new EsperClient();
        ec.personEventProcess();
        ec.send(new PersonEvent("name", 10));
        ec.send(new PersonEvent("name", 20));


        EsperClient2 ec2 = new EsperClient2();
        ec2.personEventProcess();
        Map<String,Object>  map=new HashMap<>();
        map.put("name","name");
        map.put("salary",100);
        map.put("teamName","teamName");
        ec2.send(map);
    }
}
